<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: Qt New Functions</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Qt New Functions<div class="ingroups"><a class="el" href="../../d7/dfc/group__highgui.html">High-level GUI</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dbf/structcv_1_1QtFont.html">cv::QtFont</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="../../d2/dbf/structcv_1_1QtFont.html" title="QtFont available only for Qt. See cv::fontQt. ">QtFont</a> available only for Qt. See <a class="el" href="../../dc/d46/group__highgui__qt.html#ga6281d0939583c9e0ee36372dfeb52ae3" title="Creates the font to draw a text on an image. ">cv::fontQt</a>.  <a href="../../d2/dbf/structcv_1_1QtFont.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gad15c7adb377e778dc907c0e318be193e"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#gad15c7adb377e778dc907c0e318be193e">cv::QtButtonTypes</a> { <br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea58964398bbcbd6f8a83e9767ed485880">cv::QT_PUSH_BUTTON</a> = 0, 
<br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea367844e0e15af159243f30adc65ea0dd">cv::QT_CHECKBOX</a> = 1, 
<br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea504bd273b06ac6f5eaf4eeb8a9530cd4">cv::QT_RADIOBOX</a> = 2, 
<br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea6ddf109a47ffadcc3340649b00404ac4">cv::QT_NEW_BUTTONBAR</a> = 1024
<br/>
 }<tr class="memdesc:gad15c7adb377e778dc907c0e318be193e"><td class="mdescLeft"> </td><td class="mdescRight">Qt "button" type.  <a href="../../dc/d46/group__highgui__qt.html#gad15c7adb377e778dc907c0e318be193e">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:gad15c7adb377e778dc907c0e318be193e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga985c48f130e04061bd651de78441082e"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#ga985c48f130e04061bd651de78441082e">cv::QtFontStyles</a> { <br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#gga985c48f130e04061bd651de78441082ea72d697afca937b7674103569cc62f6d1">cv::QT_STYLE_NORMAL</a> = 0, 
<br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#gga985c48f130e04061bd651de78441082eace4118a243c78d3bf9c978f828b0d874">cv::QT_STYLE_ITALIC</a> = 1, 
<br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#gga985c48f130e04061bd651de78441082ea1e83ccdfd4f4d2060492f5ec6cfd314e">cv::QT_STYLE_OBLIQUE</a> = 2
<br/>
 }<tr class="memdesc:ga985c48f130e04061bd651de78441082e"><td class="mdescLeft"> </td><td class="mdescRight">Qt font style.  <a href="../../dc/d46/group__highgui__qt.html#ga985c48f130e04061bd651de78441082e">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:ga985c48f130e04061bd651de78441082e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacd4a7935f4c2b336f8bbde275d952927"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#gacd4a7935f4c2b336f8bbde275d952927">cv::QtFontWeights</a> { <br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#ggacd4a7935f4c2b336f8bbde275d952927a23f8d6b7f141436b1f90db7cf778554c">cv::QT_FONT_LIGHT</a> = 25, 
<br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#ggacd4a7935f4c2b336f8bbde275d952927a541a5375e2348899274ead17e119b00e">cv::QT_FONT_NORMAL</a> = 50, 
<br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#ggacd4a7935f4c2b336f8bbde275d952927a387a6ce819cd7116a70cbfa74cd313fb">cv::QT_FONT_DEMIBOLD</a> = 63, 
<br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#ggacd4a7935f4c2b336f8bbde275d952927abcefd9963f506fea992352b3a4dd1115">cv::QT_FONT_BOLD</a> = 75, 
<br/>
  <a class="el" href="../../dc/d46/group__highgui__qt.html#ggacd4a7935f4c2b336f8bbde275d952927a8ead405a3c7186427d99c4bd09fb2e7b">cv::QT_FONT_BLACK</a> = 87
<br/>
 }<tr class="memdesc:gacd4a7935f4c2b336f8bbde275d952927"><td class="mdescLeft"> </td><td class="mdescRight">Qt font weight.  <a href="../../dc/d46/group__highgui__qt.html#gacd4a7935f4c2b336f8bbde275d952927">More...</a><br/></td></tr>
</td></tr>
<tr class="separator:gacd4a7935f4c2b336f8bbde275d952927"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga4e2751b94f709c848f0658d78007e449"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#ga4e2751b94f709c848f0658d78007e449">cv::addText</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;img, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;text, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> org, const <a class="el" href="../../d2/dbf/structcv_1_1QtFont.html">QtFont</a> &amp;font)</td></tr>
<tr class="memdesc:ga4e2751b94f709c848f0658d78007e449"><td class="mdescLeft"> </td><td class="mdescRight">Draws a text on the image.  <a href="../../dc/d46/group__highgui__qt.html#ga4e2751b94f709c848f0658d78007e449">More...</a><br/></td></tr>
<tr class="separator:ga4e2751b94f709c848f0658d78007e449"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad589fa15d231b4c6190c31a3034cd04e"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#gad589fa15d231b4c6190c31a3034cd04e">cv::addText</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;img, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;text, <a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> org, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;nameFont, int pointSize=-1, <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> color=<a class="el" href="../../d1/da0/classcv_1_1Scalar__.html#ac1509a4b8454fe7fe29db069e13a2e6f">Scalar::all</a>(0), int weight=<a class="el" href="../../dc/d46/group__highgui__qt.html#ggacd4a7935f4c2b336f8bbde275d952927a541a5375e2348899274ead17e119b00e">QT_FONT_NORMAL</a>, int style=<a class="el" href="../../dc/d46/group__highgui__qt.html#gga985c48f130e04061bd651de78441082ea72d697afca937b7674103569cc62f6d1">QT_STYLE_NORMAL</a>, int spacing=0)</td></tr>
<tr class="memdesc:gad589fa15d231b4c6190c31a3034cd04e"><td class="mdescLeft"> </td><td class="mdescRight">Draws a text on the image.  <a href="../../dc/d46/group__highgui__qt.html#gad589fa15d231b4c6190c31a3034cd04e">More...</a><br/></td></tr>
<tr class="separator:gad589fa15d231b4c6190c31a3034cd04e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga938dc3ab0a9f115156439bd380816e2c"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">cv::createButton</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;bar_name, <a class="el" href="../../d7/dfc/group__highgui.html#ga17ffcbb2343dc06e56f980b8414e3566">ButtonCallback</a> on_change, void *userdata=0, int type=<a class="el" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea58964398bbcbd6f8a83e9767ed485880">QT_PUSH_BUTTON</a>, bool initial_button_state=false)</td></tr>
<tr class="memdesc:ga938dc3ab0a9f115156439bd380816e2c"><td class="mdescLeft"> </td><td class="mdescRight">Attaches a button to the control panel.  <a href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">More...</a><br/></td></tr>
<tr class="separator:ga938dc3ab0a9f115156439bd380816e2c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga704e0387318cd1e7928e6fe17e81d6aa"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#ga704e0387318cd1e7928e6fe17e81d6aa">cv::displayOverlay</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;winname, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;text, int delayms=0)</td></tr>
<tr class="memdesc:ga704e0387318cd1e7928e6fe17e81d6aa"><td class="mdescLeft"> </td><td class="mdescRight">Displays a text on a window image as an overlay for a specified duration.  <a href="../../dc/d46/group__highgui__qt.html#ga704e0387318cd1e7928e6fe17e81d6aa">More...</a><br/></td></tr>
<tr class="separator:ga704e0387318cd1e7928e6fe17e81d6aa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gac56ae86269eb4fbd9c8d8cb7babfbf64"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#gac56ae86269eb4fbd9c8d8cb7babfbf64">cv::displayStatusBar</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;winname, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;text, int delayms=0)</td></tr>
<tr class="memdesc:gac56ae86269eb4fbd9c8d8cb7babfbf64"><td class="mdescLeft"> </td><td class="mdescRight">Displays a text on the window statusbar during the specified period of time.  <a href="../../dc/d46/group__highgui__qt.html#gac56ae86269eb4fbd9c8d8cb7babfbf64">More...</a><br/></td></tr>
<tr class="separator:gac56ae86269eb4fbd9c8d8cb7babfbf64"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6281d0939583c9e0ee36372dfeb52ae3"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../d2/dbf/structcv_1_1QtFont.html">QtFont</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#ga6281d0939583c9e0ee36372dfeb52ae3">cv::fontQt</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;nameFont, int pointSize=-1, <a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> color=<a class="el" href="../../d1/da0/classcv_1_1Scalar__.html#ac1509a4b8454fe7fe29db069e13a2e6f">Scalar::all</a>(0), int weight=<a class="el" href="../../dc/d46/group__highgui__qt.html#ggacd4a7935f4c2b336f8bbde275d952927a541a5375e2348899274ead17e119b00e">QT_FONT_NORMAL</a>, int style=<a class="el" href="../../dc/d46/group__highgui__qt.html#gga985c48f130e04061bd651de78441082ea72d697afca937b7674103569cc62f6d1">QT_STYLE_NORMAL</a>, int spacing=0)</td></tr>
<tr class="memdesc:ga6281d0939583c9e0ee36372dfeb52ae3"><td class="mdescLeft"> </td><td class="mdescRight">Creates the font to draw a text on an image.  <a href="../../dc/d46/group__highgui__qt.html#ga6281d0939583c9e0ee36372dfeb52ae3">More...</a><br/></td></tr>
<tr class="separator:ga6281d0939583c9e0ee36372dfeb52ae3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8e6806c75e016cf22d998b4d454b3bfd"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#ga8e6806c75e016cf22d998b4d454b3bfd">cv::loadWindowParameters</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;windowName)</td></tr>
<tr class="memdesc:ga8e6806c75e016cf22d998b4d454b3bfd"><td class="mdescLeft"> </td><td class="mdescRight">Loads parameters of the specified window.  <a href="../../dc/d46/group__highgui__qt.html#ga8e6806c75e016cf22d998b4d454b3bfd">More...</a><br/></td></tr>
<tr class="separator:ga8e6806c75e016cf22d998b4d454b3bfd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadf97be240277ba20442fa7ca7f6bc957"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#gadf97be240277ba20442fa7ca7f6bc957">cv::saveWindowParameters</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;windowName)</td></tr>
<tr class="memdesc:gadf97be240277ba20442fa7ca7f6bc957"><td class="mdescLeft"> </td><td class="mdescRight">Saves parameters of the specified window.  <a href="../../dc/d46/group__highgui__qt.html#gadf97be240277ba20442fa7ca7f6bc957">More...</a><br/></td></tr>
<tr class="separator:gadf97be240277ba20442fa7ca7f6bc957"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae1ae035082d76c7fb981203a974bd4ba"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#gae1ae035082d76c7fb981203a974bd4ba">cv::startLoop</a> (int(*pt2Func)(int argc, char *argv[]), int argc, char *argv[])</td></tr>
<tr class="separator:gae1ae035082d76c7fb981203a974bd4ba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad4783dd50a6844a04ac8cb4fe158fdf3"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d46/group__highgui__qt.html#gad4783dd50a6844a04ac8cb4fe158fdf3">cv::stopLoop</a> ()</td></tr>
<tr class="separator:gad4783dd50a6844a04ac8cb4fe158fdf3"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="image">
<img alt="qtgui.png" src="../../qtgui.png"/>
<div class="caption">
image</div></div>
<p> This figure explains new functionality implemented with Qt* GUI. The new GUI provides a statusbar, a toolbar, and a control panel. The control panel can have trackbars and buttonbars attached to it. If you cannot see the control panel, press Ctrl+P or right-click any Qt window and select <b>Display properties window</b>.</p>
<ul>
<li>To attach a trackbar, the window name parameter must be NULL.</li>
<li>To attach a buttonbar, a button must be created. If the last bar attached to the control panel is a buttonbar, the new button is added to the right of the last button. If the last bar attached to the control panel is a trackbar, or the control panel is empty, a new buttonbar is created. Then, a new button is attached to it.</li>
</ul>
<p>See below the example used to generate the figure: </p><div class="fragment"><div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])</div><div class="line">{</div><div class="line"></div><div class="line">    <span class="keywordtype">int</span> value = 50;</div><div class="line">    <span class="keywordtype">int</span> value2 = 0;</div><div class="line"></div><div class="line"></div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga5afdf8410934fd099df85c75b2e0888b">namedWindow</a>(<span class="stringliteral">"main1"</span>,<a class="code" href="../../d0/d90/group__highgui__window__flags.html#ggabf7d2c5625bc59ac130287f925557ac3a29e45c5af696f73ce5e153601e5ca0f1">WINDOW_NORMAL</a>);</div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga5afdf8410934fd099df85c75b2e0888b">namedWindow</a>(<span class="stringliteral">"main2"</span>,<a class="code" href="../../d0/d90/group__highgui__window__flags.html#ggabf7d2c5625bc59ac130287f925557ac3acf621ace7a54954cbac01df27e47228f">WINDOW_AUTOSIZE</a> | <a class="code" href="../../d0/d90/group__highgui__window__flags.html#ggabf7d2c5625bc59ac130287f925557ac3a39cee9c8d57caf2368eaf60980dc5d70">WINDOW_GUI_NORMAL</a>);</div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#gaf78d2155d30b728fc413803745b67a9b">createTrackbar</a>( <span class="stringliteral">"track1"</span>, <span class="stringliteral">"main1"</span>, &amp;value, 255,  NULL);</div><div class="line"></div><div class="line">    <a class="code" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> nameb1 = <span class="stringliteral">"button1"</span>;</div><div class="line">    <a class="code" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> nameb2 = <span class="stringliteral">"button2"</span>;</div><div class="line"></div><div class="line">    <a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(nameb1,callbackButton,&amp;nameb1,<a class="code" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea367844e0e15af159243f30adc65ea0dd">QT_CHECKBOX</a>,1);</div><div class="line">    <a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(nameb2,callbackButton,NULL,<a class="code" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea367844e0e15af159243f30adc65ea0dd">QT_CHECKBOX</a>,0);</div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#gaf78d2155d30b728fc413803745b67a9b">createTrackbar</a>( <span class="stringliteral">"track2"</span>, NULL, &amp;value2, 255, NULL);</div><div class="line">    <a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(<span class="stringliteral">"button5"</span>,callbackButton1,NULL,<a class="code" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea504bd273b06ac6f5eaf4eeb8a9530cd4">QT_RADIOBOX</a>,0);</div><div class="line">    <a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(<span class="stringliteral">"button6"</span>,callbackButton2,NULL,<a class="code" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea504bd273b06ac6f5eaf4eeb8a9530cd4">QT_RADIOBOX</a>,1);</div><div class="line"></div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga89e7806b0a616f6f1d502bd8c183ad3e">setMouseCallback</a>( <span class="stringliteral">"main2"</span>,on_mouse,NULL );</div><div class="line"></div><div class="line">    Mat img1 = <a class="code" href="../../d4/da8/group__imgcodecs.html#ga288b8b3da0892bd651fce07b3bbd3a56">imread</a>(<span class="stringliteral">"files/flower.jpg"</span>);</div><div class="line">    VideoCapture video;</div><div class="line">    video.open(<span class="stringliteral">"files/hockey.avi"</span>);</div><div class="line"></div><div class="line">    Mat img2,img3;</div><div class="line"></div><div class="line">    <span class="keywordflow">while</span>( <a class="code" href="../../d7/dfc/group__highgui.html#ga5628525ad33f52eab17feebcfba38bd7">waitKey</a>(33) != 27 )</div><div class="line">    {</div><div class="line">        img1.convertTo(img2,-1,1,value);</div><div class="line">        video &gt;&gt; img3;</div><div class="line"></div><div class="line">        <a class="code" href="../../d7/dfc/group__highgui.html#ga453d42fe4cb60e5723281a89973ee563">imshow</a>(<span class="stringliteral">"main1"</span>,img2);</div><div class="line">        <a class="code" href="../../d7/dfc/group__highgui.html#ga453d42fe4cb60e5723281a89973ee563">imshow</a>(<span class="stringliteral">"main2"</span>,img3);</div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga6b7fc1c1a8960438156912027b38f481">destroyAllWindows</a>();</div><div class="line"></div><div class="line">    <span class="keywordflow">return</span> 0;</div><div class="line">}</div></div><!-- fragment --> <h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gad15c7adb377e778dc907c0e318be193e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad15c7adb377e778dc907c0e318be193e">◆ </a></span>QtButtonTypes</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../dc/d46/group__highgui__qt.html#gad15c7adb377e778dc907c0e318be193e">cv::QtButtonTypes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Qt "button" type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggad15c7adb377e778dc907c0e318be193ea58964398bbcbd6f8a83e9767ed485880"></a>QT_PUSH_BUTTON <div class="python_language">Python: cv.QT_PUSH_BUTTON</div></td><td class="fielddoc"><p>Push button. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad15c7adb377e778dc907c0e318be193ea367844e0e15af159243f30adc65ea0dd"></a>QT_CHECKBOX <div class="python_language">Python: cv.QT_CHECKBOX</div></td><td class="fielddoc"><p>Checkbox button. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad15c7adb377e778dc907c0e318be193ea504bd273b06ac6f5eaf4eeb8a9530cd4"></a>QT_RADIOBOX <div class="python_language">Python: cv.QT_RADIOBOX</div></td><td class="fielddoc"><p>Radiobox button. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad15c7adb377e778dc907c0e318be193ea6ddf109a47ffadcc3340649b00404ac4"></a>QT_NEW_BUTTONBAR <div class="python_language">Python: cv.QT_NEW_BUTTONBAR</div></td><td class="fielddoc"><p>Button should create a new buttonbar. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga985c48f130e04061bd651de78441082e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga985c48f130e04061bd651de78441082e">◆ </a></span>QtFontStyles</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../dc/d46/group__highgui__qt.html#ga985c48f130e04061bd651de78441082e">cv::QtFontStyles</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Qt font style. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga985c48f130e04061bd651de78441082ea72d697afca937b7674103569cc62f6d1"></a>QT_STYLE_NORMAL <div class="python_language">Python: cv.QT_STYLE_NORMAL</div></td><td class="fielddoc"><p>Normal font. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga985c48f130e04061bd651de78441082eace4118a243c78d3bf9c978f828b0d874"></a>QT_STYLE_ITALIC <div class="python_language">Python: cv.QT_STYLE_ITALIC</div></td><td class="fielddoc"><p>Italic font. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga985c48f130e04061bd651de78441082ea1e83ccdfd4f4d2060492f5ec6cfd314e"></a>QT_STYLE_OBLIQUE <div class="python_language">Python: cv.QT_STYLE_OBLIQUE</div></td><td class="fielddoc"><p>Oblique font. </p>
</td></tr>
</table>
</div>
</div>
<a id="gacd4a7935f4c2b336f8bbde275d952927"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacd4a7935f4c2b336f8bbde275d952927">◆ </a></span>QtFontWeights</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../dc/d46/group__highgui__qt.html#gacd4a7935f4c2b336f8bbde275d952927">cv::QtFontWeights</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Qt font weight. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggacd4a7935f4c2b336f8bbde275d952927a23f8d6b7f141436b1f90db7cf778554c"></a>QT_FONT_LIGHT <div class="python_language">Python: cv.QT_FONT_LIGHT</div></td><td class="fielddoc"><p>Weight of 25. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggacd4a7935f4c2b336f8bbde275d952927a541a5375e2348899274ead17e119b00e"></a>QT_FONT_NORMAL <div class="python_language">Python: cv.QT_FONT_NORMAL</div></td><td class="fielddoc"><p>Weight of 50. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggacd4a7935f4c2b336f8bbde275d952927a387a6ce819cd7116a70cbfa74cd313fb"></a>QT_FONT_DEMIBOLD <div class="python_language">Python: cv.QT_FONT_DEMIBOLD</div></td><td class="fielddoc"><p>Weight of 63. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggacd4a7935f4c2b336f8bbde275d952927abcefd9963f506fea992352b3a4dd1115"></a>QT_FONT_BOLD <div class="python_language">Python: cv.QT_FONT_BOLD</div></td><td class="fielddoc"><p>Weight of 75. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggacd4a7935f4c2b336f8bbde275d952927a8ead405a3c7186427d99c4bd09fb2e7b"></a>QT_FONT_BLACK <div class="python_language">Python: cv.QT_FONT_BLACK</div></td><td class="fielddoc"><p>Weight of 87. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga4e2751b94f709c848f0658d78007e449"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4e2751b94f709c848f0658d78007e449">◆ </a></span>addText() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::addText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>org</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d2/dbf/structcv_1_1QtFont.html">QtFont</a> &amp; </td>
          <td class="paramname"><em>font</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.addText(</td><td class="paramname">img, text, org, nameFont[, pointSize[, color[, weight[, style[, spacing]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Draws a text on the image. </p>
<p>The function addText draws <em>text</em> on the image <em>img</em> using a specific font <em>font</em> (see example <a class="el" href="../../dc/d46/group__highgui__qt.html#ga6281d0939583c9e0ee36372dfeb52ae3" title="Creates the font to draw a text on an image. ">cv::fontQt</a> )</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>8-bit 3-channel image where the text should be drawn. </td></tr>
    <tr><td class="paramname">text</td><td>Text to write on an image. </td></tr>
    <tr><td class="paramname">org</td><td>Point(x,y) where the text should start on an image. </td></tr>
    <tr><td class="paramname">font</td><td>Font to use to draw a text. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gad589fa15d231b4c6190c31a3034cd04e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad589fa15d231b4c6190c31a3034cd04e">◆ </a></span>addText() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::addText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a> </td>
          <td class="paramname"><em>org</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>nameFont</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>pointSize</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> </td>
          <td class="paramname"><em>color</em> = <code><a class="el" href="../../d1/da0/classcv_1_1Scalar__.html#ac1509a4b8454fe7fe29db069e13a2e6f">Scalar::all</a>(0)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>weight</em> = <code><a class="el" href="../../dc/d46/group__highgui__qt.html#ggacd4a7935f4c2b336f8bbde275d952927a541a5375e2348899274ead17e119b00e">QT_FONT_NORMAL</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>style</em> = <code><a class="el" href="../../dc/d46/group__highgui__qt.html#gga985c48f130e04061bd651de78441082ea72d697afca937b7674103569cc62f6d1">QT_STYLE_NORMAL</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>spacing</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.addText(</td><td class="paramname">img, text, org, nameFont[, pointSize[, color[, weight[, style[, spacing]]]]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Draws a text on the image. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>8-bit 3-channel image where the text should be drawn. </td></tr>
    <tr><td class="paramname">text</td><td>Text to write on an image. </td></tr>
    <tr><td class="paramname">org</td><td>Point(x,y) where the text should start on an image. </td></tr>
    <tr><td class="paramname">nameFont</td><td>Name of the font. The name should match the name of a system font (such as Times*). If the font is not found, a default one is used. </td></tr>
    <tr><td class="paramname">pointSize</td><td>Size of the font. If not specified, equal zero or negative, the point size of the font is set to a system-dependent default value. Generally, this is 12 points. </td></tr>
    <tr><td class="paramname">color</td><td>Color of the font in BGRA where A = 255 is fully transparent. </td></tr>
    <tr><td class="paramname">weight</td><td>Font weight. Available operation flags are : <a class="el" href="../../dc/d46/group__highgui__qt.html#gacd4a7935f4c2b336f8bbde275d952927" title="Qt font weight. ">cv::QtFontWeights</a> You can also specify a positive integer for better control. </td></tr>
    <tr><td class="paramname">style</td><td>Font style. Available operation flags are : <a class="el" href="../../dc/d46/group__highgui__qt.html#ga985c48f130e04061bd651de78441082e" title="Qt font style. ">cv::QtFontStyles</a> </td></tr>
    <tr><td class="paramname">spacing</td><td>Spacing between characters. It can be negative or positive. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga938dc3ab0a9f115156439bd380816e2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga938dc3ab0a9f115156439bd380816e2c">◆ </a></span>createButton()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::createButton </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>bar_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d7/dfc/group__highgui.html#ga17ffcbb2343dc06e56f980b8414e3566">ButtonCallback</a> </td>
          <td class="paramname"><em>on_change</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void * </td>
          <td class="paramname"><em>userdata</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>type</em> = <code><a class="el" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea58964398bbcbd6f8a83e9767ed485880">QT_PUSH_BUTTON</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>initial_button_state</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Attaches a button to the control panel. </p>
<p>The function createButton attaches a button to the control panel. Each button is added to a buttonbar to the right of the last button. A new buttonbar is created if nothing was attached to the control panel before, or if the last element attached to the control panel was a trackbar or if the QT_NEW_BUTTONBAR flag is added to the type.</p>
<p>See below various examples of the <a class="el" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c" title="Attaches a button to the control panel. ">cv::createButton</a> function call: : </p><div class="fragment"><div class="line"><a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(<span class="stringliteral">""</span>,callbackButton);<span class="comment">//create a push button "button 0", that will call callbackButton.</span></div><div class="line"><a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(<span class="stringliteral">"button2"</span>,callbackButton,NULL,<a class="code" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea367844e0e15af159243f30adc65ea0dd">QT_CHECKBOX</a>,0);</div><div class="line"><a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(<span class="stringliteral">"button3"</span>,callbackButton,&amp;value);</div><div class="line"><a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(<span class="stringliteral">"button5"</span>,callbackButton1,NULL,<a class="code" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea504bd273b06ac6f5eaf4eeb8a9530cd4">QT_RADIOBOX</a>);</div><div class="line"><a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(<span class="stringliteral">"button6"</span>,callbackButton2,NULL,<a class="code" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea58964398bbcbd6f8a83e9767ed485880">QT_PUSH_BUTTON</a>,1);</div><div class="line"><a class="code" href="../../dc/d46/group__highgui__qt.html#ga938dc3ab0a9f115156439bd380816e2c">createButton</a>(<span class="stringliteral">"button6"</span>,callbackButton2,NULL,<a class="code" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea58964398bbcbd6f8a83e9767ed485880">QT_PUSH_BUTTON</a>|<a class="code" href="../../dc/d46/group__highgui__qt.html#ggad15c7adb377e778dc907c0e318be193ea6ddf109a47ffadcc3340649b00404ac4">QT_NEW_BUTTONBAR</a>);<span class="comment">// create a push button in a new row</span></div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bar_name</td><td>Name of the button. </td></tr>
    <tr><td class="paramname">on_change</td><td>Pointer to the function to be called every time the button changes its state. This function should be prototyped as void Foo(int state,*void); . <em>state</em> is the current state of the button. It could be -1 for a push button, 0 or 1 for a check/radio box button. </td></tr>
    <tr><td class="paramname">userdata</td><td>Pointer passed to the callback function. </td></tr>
    <tr><td class="paramname">type</td><td>Optional type of the button. Available types are: (<a class="el" href="../../dc/d46/group__highgui__qt.html#gad15c7adb377e778dc907c0e318be193e" title='Qt "button" type. '>cv::QtButtonTypes</a>) </td></tr>
    <tr><td class="paramname">initial_button_state</td><td>Default state of the button. Use for checkbox and radiobox. Its value could be 0 or 1. (<b>Optional</b>) </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga704e0387318cd1e7928e6fe17e81d6aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga704e0387318cd1e7928e6fe17e81d6aa">◆ </a></span>displayOverlay()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::displayOverlay </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>winname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>delayms</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.displayOverlay(</td><td class="paramname">winname, text[, delayms]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Displays a text on a window image as an overlay for a specified duration. </p>
<p>The function displayOverlay displays useful information/tips on top of the window for a certain amount of time <em>delayms</em>. The function does not modify the image, displayed in the window, that is, after the specified delay the original content of the window is restored.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">winname</td><td>Name of the window. </td></tr>
    <tr><td class="paramname">text</td><td>Overlay text to write on a window image. </td></tr>
    <tr><td class="paramname">delayms</td><td>The period (in milliseconds), during which the overlay text is displayed. If this function is called before the previous overlay text timed out, the timer is restarted and the text is updated. If this value is zero, the text never disappears. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gac56ae86269eb4fbd9c8d8cb7babfbf64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac56ae86269eb4fbd9c8d8cb7babfbf64">◆ </a></span>displayStatusBar()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::displayStatusBar </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>winname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>delayms</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.displayStatusBar(</td><td class="paramname">winname, text[, delayms]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Displays a text on the window statusbar during the specified period of time. </p>
<p>The function displayStatusBar displays useful information/tips on top of the window for a certain amount of time <em>delayms</em> . This information is displayed on the window statusbar (the window must be created with the CV_GUI_EXPANDED flags).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">winname</td><td>Name of the window. </td></tr>
    <tr><td class="paramname">text</td><td>Text to write on the window statusbar. </td></tr>
    <tr><td class="paramname">delayms</td><td>Duration (in milliseconds) to display the text. If this function is called before the previous text timed out, the timer is restarted and the text is updated. If this value is zero, the text never disappears. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga6281d0939583c9e0ee36372dfeb52ae3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6281d0939583c9e0ee36372dfeb52ae3">◆ </a></span>fontQt()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/dbf/structcv_1_1QtFont.html">QtFont</a> cv::fontQt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>nameFont</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>pointSize</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a> </td>
          <td class="paramname"><em>color</em> = <code><a class="el" href="../../d1/da0/classcv_1_1Scalar__.html#ac1509a4b8454fe7fe29db069e13a2e6f">Scalar::all</a>(0)</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>weight</em> = <code><a class="el" href="../../dc/d46/group__highgui__qt.html#ggacd4a7935f4c2b336f8bbde275d952927a541a5375e2348899274ead17e119b00e">QT_FONT_NORMAL</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>style</em> = <code><a class="el" href="../../dc/d46/group__highgui__qt.html#gga985c48f130e04061bd651de78441082ea72d697afca937b7674103569cc62f6d1">QT_STYLE_NORMAL</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>spacing</em> = <code>0</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Creates the font to draw a text on an image. </p>
<p>The function fontQt creates a <a class="el" href="../../d2/dbf/structcv_1_1QtFont.html" title="QtFont available only for Qt. See cv::fontQt. ">cv::QtFont</a> object. This <a class="el" href="../../d2/dbf/structcv_1_1QtFont.html" title="QtFont available only for Qt. See cv::fontQt. ">cv::QtFont</a> is not compatible with putText .</p>
<p>A basic usage of this function is the following: : </p><div class="fragment"><div class="line">QtFont font = <a class="code" href="../../dc/d46/group__highgui__qt.html#ga6281d0939583c9e0ee36372dfeb52ae3">fontQt</a>(<span class="stringliteral">"Times"</span>);</div><div class="line"><a class="code" href="../../dc/d46/group__highgui__qt.html#ga4e2751b94f709c848f0658d78007e449">addText</a>( img1, <span class="stringliteral">"Hello World !"</span>, <a class="code" href="../../dc/d84/group__core__basic.html#ga1e83eafb2d26b3c93f09e8338bcab192">Point</a>(50,50), font);</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">nameFont</td><td>Name of the font. The name should match the name of a system font (such as Times*). If the font is not found, a default one is used. </td></tr>
    <tr><td class="paramname">pointSize</td><td>Size of the font. If not specified, equal zero or negative, the point size of the font is set to a system-dependent default value. Generally, this is 12 points. </td></tr>
    <tr><td class="paramname">color</td><td>Color of the font in BGRA where A = 255 is fully transparent. Use the macro CV_RGB for simplicity. </td></tr>
    <tr><td class="paramname">weight</td><td>Font weight. Available operation flags are : <a class="el" href="../../dc/d46/group__highgui__qt.html#gacd4a7935f4c2b336f8bbde275d952927" title="Qt font weight. ">cv::QtFontWeights</a> You can also specify a positive integer for better control. </td></tr>
    <tr><td class="paramname">style</td><td>Font style. Available operation flags are : <a class="el" href="../../dc/d46/group__highgui__qt.html#ga985c48f130e04061bd651de78441082e" title="Qt font style. ">cv::QtFontStyles</a> </td></tr>
    <tr><td class="paramname">spacing</td><td>Spacing between characters. It can be negative or positive. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ga8e6806c75e016cf22d998b4d454b3bfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8e6806c75e016cf22d998b4d454b3bfd">◆ </a></span>loadWindowParameters()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::loadWindowParameters </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>windowName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Loads parameters of the specified window. </p>
<p>The function loadWindowParameters loads size, location, flags, trackbars value, zoom and panning location of the window windowName.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">windowName</td><td>Name of the window. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gadf97be240277ba20442fa7ca7f6bc957"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadf97be240277ba20442fa7ca7f6bc957">◆ </a></span>saveWindowParameters()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::saveWindowParameters </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>windowName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
<p>Saves parameters of the specified window. </p>
<p>The function saveWindowParameters saves size, location, flags, trackbars value, zoom and panning location of the window windowName.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">windowName</td><td>Name of the window. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="gae1ae035082d76c7fb981203a974bd4ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae1ae035082d76c7fb981203a974bd4ba">◆ </a></span>startLoop()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::startLoop </td>
          <td>(</td>
          <td class="paramtype">int(*)(int argc, char *argv[]) </td>
          <td class="paramname"><em>pt2Func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char * </td>
          <td class="paramname"><em>argv</em>[] </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
</div>
</div>
<a id="gad4783dd50a6844a04ac8cb4fe158fdf3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad4783dd50a6844a04ac8cb4fe158fdf3">◆ </a></span>stopLoop()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::stopLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><code>#include &lt;<a class="el" href="../../d4/dd5/highgui_8hpp.html">opencv2/highgui.hpp</a>&gt;</code></p>
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:40 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
